<template>
  <div class="address-card">
    <div v-if="true"
         class="address-list">
      <li class="addlist-position">
        <img :src="require('@/assets/image/order/dizhi.png')"
             alt="" />
      </li>
      <div class="addlist-info">
        <li class="info-top">
          <span>姓名: 22</span>
          <span>111111111</span>
        </li>
        <li class="info-address text-overflow_1-xzh">
          111111111111111111
        </li>
      </div>
      <li class="addlist-edit"
          v-if="rightShow">
        <van-icon name="arrow"
                  color="#666666"
                  size="20"></van-icon>
      </li>
    </div>
    <div v-else
         class="address-list address-none">
      <van-icon name="plus"></van-icon>
      新增地址
    </div>
  </div>
</template>

<script>
export default {
  props: {
    rightShow: {
      type: Boolean,
      default: true
    }
  },
  data () {
    return {
    };
  },
  created () { },
  methods: {}
}

</script>

<style lang='scss'>
.address-card {
  .address-list {
    width: 100%;
    height: 1.2rem;
    background: #fff;
    display: flex;
    border-radius: 0.15rem;
    box-sizing: border-box;
    padding: 0 0.3rem;
    .addlist-position {
      width: 1rem;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        width: 0.55rem;
        height: 0.55rem;
        margin-right: 0.15rem;
      }
    }
    .addlist-info {
      flex: 1;
      box-sizing: border-box;
      padding: 0.2rem 0;
      display: flex;
      flex-direction: column;
      .info-top {
        flex: 1;
        display: flex;
        align-items: center;
        color: #969696;
      }
      .info-top > span:first-child {
        margin-right: 0.3rem;
        color: #000;
      }
      .info-address {
        flex: 1;
        width: 5.5rem;
        line-height: 0.5rem;
      }
    }
    .addlist-edit {
      width: 1rem;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .address-none {
    justify-content: center;
    align-items: center;
    font-size: 0.36rem;
  }
}
</style>